package com.ruoyi.generator.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 数据源信息对象 biz_database
 * 
 * @author ruoyi
 * @date 2024-12-26
 */
public class Database extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 数据库名称 */
    @Excel(name = "数据库名称")
    private String baseName;

    /** 数据库IP */
    @Excel(name = "数据库IP")
    private String baseIp;

    /** 数据库端口 */
    @Excel(name = "数据库端口")
    private String basePort;

    /** 数据库用户名 */
    @Excel(name = "数据库用户名")
    private String baseUsername;

    /** 数据库密码 */
    @Excel(name = "数据库密码")
    private String basePassword;

    /** 数据库类型 */
    @Excel(name = "数据库类型")
    private String baseType;

    /** 数据库版本 */
    @Excel(name = "数据库版本")
    private String baseVersion;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setBaseName(String baseName) 
    {
        this.baseName = baseName;
    }

    public String getBaseName() 
    {
        return baseName;
    }
    public void setBaseIp(String baseIp) 
    {
        this.baseIp = baseIp;
    }

    public String getBaseIp() 
    {
        return baseIp;
    }
    public void setBasePort(String basePort) 
    {
        this.basePort = basePort;
    }

    public String getBasePort() 
    {
        return basePort;
    }
    public void setBaseUsername(String baseUsername) 
    {
        this.baseUsername = baseUsername;
    }

    public String getBaseUsername() 
    {
        return baseUsername;
    }
    public void setBasePassword(String basePassword) 
    {
        this.basePassword = basePassword;
    }

    public String getBasePassword() 
    {
        return basePassword;
    }
    public void setBaseType(String baseType) 
    {
        this.baseType = baseType;
    }

    public String getBaseType() 
    {
        return baseType;
    }
    public void setBaseVersion(String baseVersion) 
    {
        this.baseVersion = baseVersion;
    }

    public String getBaseVersion() 
    {
        return baseVersion;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("baseName", getBaseName())
            .append("baseIp", getBaseIp())
            .append("basePort", getBasePort())
            .append("baseUsername", getBaseUsername())
            .append("basePassword", getBasePassword())
            .append("baseType", getBaseType())
            .append("baseVersion", getBaseVersion())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
